home *** CD-ROM | disk | FTP | other *** search
- Path: gryphon.phoenix.net!usenet
- From: brucew@phoenix.net (Bruce Wedding)
- Newsgroups: comp.lang.c
- Subject: Re: PROBLEMS WITH A STRUCTURE...
- Date: Sun, 18 Feb 1996 07:22:27 GMT
- Organization: BranPaul Systems
- Message-ID: <4g6k4i$sqk@gryphon.phoenix.net>
- References: <4g3c55$413@hermes.fundp.ac.be>
- NNTP-Posting-Host: dial45.phoenix.net
- X-Newsreader: Moe's Newsreader
-
-
- >aa_specifications[0].atoms_in_distance[0] = {"X","X","X"};
-
- When you cut through all the typedef BS, these are just two
- dimensional arrays. You can't assign strings with the assignment
- operator in C. Try this to replace the above line and follow all
- others the same way.
-
- #include <string.h>
-
- strcpy(aa_specifications[0].atoms_in_distance[0][0],"X");
- strcpy(aa_specifications[0].atoms_in_distance[0][1],"X");
- strcpy(aa_specifications[0].atoms_in_distance[0][2],"X");
-
- BTW: Your email address is screwed up or you would have gotten a
- copy of it.
-
-
-
-
-
- Bruce D. Wedding Have Compiler, Will Travel!
- Perspicacious Programming Performed Promptly
- Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
-
-